(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
a__f(a, X, X) → a__f(X, a__b, b)
a__b → a
mark(f(X1, X2, X3)) → a__f(X1, mark(X2), X3)
mark(b) → a__b
mark(a) → a
a__f(X1, X2, X3) → f(X1, X2, X3)
a__b → b
Rewrite Strategy: INNERMOST
(1) CpxTrsToCdtProof (BOTH BOUNDS(ID, ID) transformation)
Converted CpxTRS to CDT
(2) Obligation:
Complexity Dependency Tuples Problem
Rules:
a__f(a, z0, z0) → a__f(z0, a__b, b)
a__f(z0, z1, z2) → f(z0, z1, z2)
a__b → a
a__b → b
mark(f(z0, z1, z2)) → a__f(z0, mark(z1), z2)
mark(b) → a__b
mark(a) → a
Tuples:
A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
MARK(b) → c5(A__B)
S tuples:
A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
MARK(b) → c5(A__B)
K tuples:none
Defined Rule Symbols:
a__f, a__b, mark
Defined Pair Symbols:
A__F, MARK
Compound Symbols:
c, c4, c5
(3) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID) transformation)
Removed 1 trailing nodes:
MARK(b) → c5(A__B)
(4) Obligation:
Complexity Dependency Tuples Problem
Rules:
a__f(a, z0, z0) → a__f(z0, a__b, b)
a__f(z0, z1, z2) → f(z0, z1, z2)
a__b → a
a__b → b
mark(f(z0, z1, z2)) → a__f(z0, mark(z1), z2)
mark(b) → a__b
mark(a) → a
Tuples:
A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
S tuples:
A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
K tuples:none
Defined Rule Symbols:
a__f, a__b, mark
Defined Pair Symbols:
A__F, MARK
Compound Symbols:
c, c4
(5) CdtPolyRedPairProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
We considered the (Usable) Rules:
mark(f(z0, z1, z2)) → a__f(z0, mark(z1), z2)
mark(b) → a__b
mark(a) → a
a__b → a
a__b → b
a__f(a, z0, z0) → a__f(z0, a__b, b)
a__f(z0, z1, z2) → f(z0, z1, z2)
And the Tuples:
A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(A__B) = 0
POL(A__F(x1, x2, x3)) = [2] + [3]x1 + [4]x3
POL(MARK(x1)) = [4]x1
POL(a) = 0
POL(a__b) = [2]
POL(a__f(x1, x2, x3)) = [3] + [3]x1 + [2]x2 + [3]x3
POL(b) = 0
POL(c(x1, x2)) = x1 + x2
POL(c4(x1, x2)) = x1 + x2
POL(f(x1, x2, x3)) = [4] + x1 + x2 + x3
POL(mark(x1)) = [3]
(6) Obligation:
Complexity Dependency Tuples Problem
Rules:
a__f(a, z0, z0) → a__f(z0, a__b, b)
a__f(z0, z1, z2) → f(z0, z1, z2)
a__b → a
a__b → b
mark(f(z0, z1, z2)) → a__f(z0, mark(z1), z2)
mark(b) → a__b
mark(a) → a
Tuples:
A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
S tuples:
A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
K tuples:
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
Defined Rule Symbols:
a__f, a__b, mark
Defined Pair Symbols:
A__F, MARK
Compound Symbols:
c, c4
(7) CdtPolyRedPairProof (UPPER BOUND (ADD(O(n^1))) transformation)
Found a reduction pair which oriented the following tuples strictly. Hence they can be removed from S.
A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
We considered the (Usable) Rules:
mark(f(z0, z1, z2)) → a__f(z0, mark(z1), z2)
mark(b) → a__b
mark(a) → a
a__b → a
a__b → b
a__f(a, z0, z0) → a__f(z0, a__b, b)
a__f(z0, z1, z2) → f(z0, z1, z2)
And the Tuples:
A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
The order we found is given by the following interpretation:
Polynomial interpretation :
POL(A__B) = 0
POL(A__F(x1, x2, x3)) = [3] + x1 + x3
POL(MARK(x1)) = [4]x1
POL(a) = [4]
POL(a__b) = [1]
POL(a__f(x1, x2, x3)) = [3] + [3]x1 + [2]x2 + [3]x3
POL(b) = 0
POL(c(x1, x2)) = x1 + x2
POL(c4(x1, x2)) = x1 + x2
POL(f(x1, x2, x3)) = [2] + x1 + x2 + x3
POL(mark(x1)) = [3]
(8) Obligation:
Complexity Dependency Tuples Problem
Rules:
a__f(a, z0, z0) → a__f(z0, a__b, b)
a__f(z0, z1, z2) → f(z0, z1, z2)
a__b → a
a__b → b
mark(f(z0, z1, z2)) → a__f(z0, mark(z1), z2)
mark(b) → a__b
mark(a) → a
Tuples:
A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
S tuples:none
K tuples:
MARK(f(z0, z1, z2)) → c4(A__F(z0, mark(z1), z2), MARK(z1))
A__F(a, z0, z0) → c(A__F(z0, a__b, b), A__B)
Defined Rule Symbols:
a__f, a__b, mark
Defined Pair Symbols:
A__F, MARK
Compound Symbols:
c, c4
(9) SIsEmptyProof (EQUIVALENT transformation)
The set S is empty
(10) BOUNDS(O(1), O(1))